package com.hsoft.zhxy.app.demo_03_01.model.query;

import com.hsoft.zhxy.common.validated.ValidatedGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class DemoQuery  implements Serializable {

    private static final long serialVersionUID = -6552353770699739025L;

    @NotBlank(message = "用户id为空", groups = {ValidatedGroup.Add.class, ValidatedGroup.Update.class})
    private String yhid;

    private Long yhzt;

    private String xm;

    private String bmm;

    @NotNull(message = "页码不能为空", groups = {ValidatedGroup.Find.class})
    private Long page;

    @NotNull(message = "列表数量不能为空", groups = {ValidatedGroup.Find.class})
    private Long pageSize;


}
